import Vue from "vue";
import Router from "vue-router";

import OperationData from "@/components/SellCondition/OperationData";
import Operationa from "@/components/SellCondition/Operationa";
import index from "@/components/SellCondition/map";
import Campaigns from "@/components/MarketingList/campaigns";
import Sales from '@/components/MarketingList/Sales'
import MarketingList from '@/components/MarketingList/index'
import MachineList from '@/components/MarketingList/MachineList'
// import SalesReport from '@/components/MarketingList/SalesReport'
//测试
// import test from '@/components/SellCondition/Echarts'
import test1 from '@/components/test'
//财务的数据
import Finandata from '@/components/FinanciaSalesData/Financiadata'
//库存数据
import InvenToryData from '@/components/FinanciaSalesData/inventorydata'
Vue.use(Router);

export default new Router({
    // mode: "history",
    routes: [
       
        { path: "/", redirect: "/Operationa" },
      //表一
         {
            path: "/Operationa",

            name: "Operationa",
            component: Operationa
        },
        //表二
        {
            path: "/OperationData",
            name: "OperationData",
            component: OperationData
        },
            //地图
        {
            path: "/map",

            name: "index",
            component: index,

        },

    
        // {
        //     path: "/campaigns",

        //     name: "Campaigns",
        //     component: Campaigns
        // },
        //销售分析
        {

            path: "/Sales",
            name: "销售分析",
            component: Sales
        },
        //商品分析报表
        {
            path: "/index",
            name: "商品分析报表",
            component: MarketingList
        },
        // 单机销售报表
        {
            path: "/MachineList",
            name: "单机销售报表",
            component: MachineList
        },
         // 销售日月报
        //  {
        //     path: "/SalesReport",
        //     name: "销售日月报",
        //     component: SalesReport
        // },
        //财务的数据
        {
            path: "/Financiadata",
            name: "财务的数据",
            component: Finandata
        },
           //库存数据
           {
            path: "/inventorydata",
            name: "库存数据",
            component: InvenToryData
        },
        // //测试
        // {
        //     path: "/Echarts",
        //     name: "销售分析",
        //     component: test
        // },
        //  //测试
         {
            path: "/test",
            name: "销售分析",
            component: test1
        },
     
    ]
       

});

export const asyncRouterMap = [];

export const constantRouterMap = [];
// const _import = require('./_import_' + process.env.NODE_ENpm